package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_third_account
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_third_account")
public class SysThirdAccount implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 编号
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 第三方登录id
     */
    @Column(name = "sys_user_id", length = 32)
    private String sysUserId;
    
    /**
     * 登录来源
     */
    @Column(name = "third_type", length = 255)
    private String thirdType;
    
    /**
     * 头像
     */
    @Column(name = "avatar", length = 255)
    private String avatar;
    
    /**
     * 状态(1-正常,2-冻结)
     */
    @Column(name = "status")
    private Boolean status;
    
    /**
     * 删除状态(0-正常,1-已删除)
     */
    @Column(name = "del_flag")
    private Boolean delFlag;
    
    /**
     * 真实姓名
     */
    @Column(name = "realname", length = 100)
    private String realname;
    
    /**
     * 第三方账号
     */
    @Column(name = "third_user_uuid", length = 100)
    private String thirdUserUuid;
    
    @Override
    public String toString() {
        return "SysThirdAccount{" +
            "id=" + id +
            ", sysUserId=" + sysUserId +
            ", thirdType=" + thirdType +
            ", avatar=" + avatar +
            ", status=" + status +
            ", delFlag=" + delFlag +
            ", realname=" + realname +
            ", thirdUserUuid=" + thirdUserUuid +
        '}';
    }
} 